home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20010306-20010921 / 000352_grinder@no.spam.maam.com_Sat Sep 1 12:48:12 EDT 2001.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  66 lines

  1. Article: 12736 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!howland.erols.net!news.maxwell.syr.edu!newsxfer.eecs.umich.edu!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews4
  3. From: "Grinder" <grinder@no.spam.maam.com>
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: if exist
  6. Date: Fri, 31 Aug 2001 18:48:31 -0500
  7. Organization: http://extra.newsguy.com
  8. Lines: 49
  9. Message-ID: <9mp7sp0vm6@enews4.newsguy.com>
  10. NNTP-Posting-Host: 216-166-242-124.grics.net
  11. X-Priority: 3
  12. X-MSMail-Priority: Normal
  13. X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
  14. X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:12736
  16.  
  17. I'm re-writing an mskermit script for use with kermit-95.  It's
  18. gone very smoothly, with the exception of one command.  Here's
  19. the relevant portion of the script:
  20. _____________
  21.  
  22. :CHECKCLAIM
  23. pause 1
  24. if exist c:\projects\rlisys\rlinsf31\cache\queue\*.zip goto
  25. SENDCLAIM
  26. goto SENDZERO
  27.  
  28. :SENDCLAIM
  29. send queue\*.zip
  30. if success goto SENDSUCCEED
  31.  
  32. echo \13\10<< Errors occurred while sending claims >>\13\10
  33. goto SENDDONE
  34.  
  35. :SENDSUCCEED
  36. move queue\*.zip sent
  37. echo \13\10<< Claims have been sent >>\13\10
  38. goto SENDDONE
  39.  
  40. :SENDZERO
  41. echo \13\10<< No claims to send >>\13\10
  42.  
  43. :SENDDONE
  44. pause 1
  45. finish
  46. output \13
  47. _____________
  48.  
  49. The "if exist" command will always fail.  It's my understanding
  50. that the expression will return a file count, that functions as
  51. a boolean (non-zero is true,) but can't see what I'm doing
  52. wrong.
  53.  
  54. If I remove the check and just attempt to send the claims, it
  55. works well, but I would rather have the explicit "no claims to
  56. send" message given to the user.
  57.  
  58. I've tried using different path delimiters, using an absolute
  59. path, and various other tweaks of the path, but for naught.
  60.  
  61. Can anyone see what I'm missing?
  62.  
  63. Thanks.
  64.  
  65.  
  66.